The following software is required to customise and run the system:
The Moqui back-end has a build-in database which need to be initialized with the database model stored inside Moqui and has to be loaded with initial data. Together with compiling the moqui framework created a complete system.
The moqui backend should run in a separate terminal which is initialized with the following commands:
cd moqui
./gradlew downloadElasticsearch
./gradlew build
java -jar moqui.war load types=seed,seed-initial,install
And to start it with:
java -jar moqui.war
Also the chat server should run in a separate terminal and can be started with the following command:
./gradlew apprun
Now you can start the flutter fontend with:
cd packages/admin
flutter run
or for Hotel:
cd packages/hotel
flutter run
In the above case the packages from pub.dev are being used. If you like to customize the system you have to activate the locally stored packages by the following command after you have activated the 'melos' command with: 'dart pub global activate melos'
This command will create package override files which will activate the local stored packages.
However this is not enough, the local packages also use 'Freeze' to generate the 'copyWith' commands and the data model back-end interface fromJson and ToJson functions. To generate these, again use the melos program with the command 'melos build_all'
The last generation what is required is to generate the language localization files with again the Melos package with the command: 'melos l10n'
Now you have a system which is using the local package sources and you are able to change them. The last command will start the flutter without rebuilding
To summarise the building process:
cd growerp/flutter
melos bootstrap
melos build_all
melos l10n